package com.ld.security.server.blog.modules.cms.mapping;


import com.ld.security.server.blog.modules.cms.entity.CmsCollectEntity;
import com.ld.security.common.mybatis.base.mapping.SuperMapping;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;


public interface  CmsCollectMapping  extends SuperMapping<CmsCollectEntity>{

    @Update("update cms_collect set click_total = click_total + 1 where id = #{id}")
    int incrTotal(@Param("id") String id);
    }
